
# Default target
default: depends

## Top level rules
minimal-depends: installed-antlr installed-boost installed-sqlite installed-protobufs installed-gsl

# Adds basic graphics dependencies to minimal
minimal-graphics-depends: minimal-depends minimal-optional-graphics-dependencies

# Add headless dependencies to minimal
headless-depends: minimal-depends optional-headless-dependencies

# Full set of dependencies
depends: minimal-depends optional-dependencies


# (Note) full-* doesn't mean much on mac because we don't have system dependencies. They're really the same as the regular depends.

# All headless dependencies.
full-headless-depends: headless-depends

full-depends: depends


## Helper groups of packages
optional-headless-dependencies: installed-libcassandra installed-v8 installed-nvtt installed-bullet installed-ffmpeg installed-opencollada

minimal-optional-graphics-dependencies: installed-ogre installed-opencollada

optional-graphics-dependencies: minimal-optional-graphics-dependencies installed-chromium

optional-dependencies : optional-headless-dependencies optional-graphics-dependencies


## Rules for individual package dependencies
installed-ogre : installed-boost installed-freeimage installed-sdl

installed-opencollada : installed-pcre

installed-sdl : installed-pkg-config

installed-libcassandra: installed-thrift

installed-thrift: installed-boost

installed-ffmpeg: installed-yasm

installed-chromium:
	./install chromium

installed-%:
	$(filter -j%,$(MFLAGS)) ./install $(INSTALLFLAGS) $(patsubst installed-%,%,$@)
